#ifndef __MAIN_INC_H__
#define __MAIN_INC_H__

#include <string>
#include <vector>
#include <stdlib.h>
#include <stdint.h>
#include <stdarg.h>
#include <stdio.h>
#include <errno.h>
#include <dirent.h>
#include <pthread.h>
#include <signal.h>


using namespace std;


typedef uint32_t u32;
typedef uint16_t u16;
typedef int32_t i32;
typedef int16_t i16;
typedef int8_t i8;
typedef uint8_t u8;
//typedef uint32_t Bool;

#define ENTER_CS(MUTEX) pthread_mutex_lock   (& MUTEX )
#define LEAVE_CS(MUTEX) pthread_mutex_unlock (& MUTEX )


#endif // __MAIN_INC_H__
